var t = require("../../utils/tool");

Component({
    properties: {
        text: {
            type: String,
            value: "确认"
        },
        showTips: {
            type: Boolean,
            value: !1
        },
        tips: {
            type: String,
            observer: function(t) {
                t.startsWith("-") && this.setData({
                    isTips: !1
                });
            }
        }
    },
    data: {
        isTips: !0
    },
    methods: {
        onTap: (0, t.throttle)(function() {
            this.triggerEvent("buttonTap", {}, {});
        }, 300)
    }
});